import Vue from 'vue'
import Vuex from 'vuex'
import VuexPersistence from 'vuex-persist'
import common from './modules/common'

Vue.use(Vuex)
    // 持久化存储
const vuexLocal = new VuexPersistence({
    storage: window.localStorage
})

export default new Vuex.Store({
    modules: {
        common
    },
    plugins: [vuexLocal.plugin]
})